package com.pingan.glue.gluegame.common;

public enum  ErrorMessage {
    UN_KNOWN("600000","未知错误"),
    TOKEN_ERROR("600001","生成Token失败"),
    UUID_NOT_NULL("600002","uuid不能为空"),
    CAPTCHA("600003","验证码不正确"),
    MOBILE_CODE_NOT_NULL("600004","手机号和动态码不能为空"),
    MOBILE_NOT("600005","手机号不存在，清先注册"),
    USERNAME_EXIST("600006","账号已经存在,请直接登陆"),
    UPLOAD_ERROR("600007","图片上传失败"),
    FACE_ADD_USER_ID_ERROR("600008","头像上传时userId error"),
    FACE_UPDATE_USER_ID_ERROR("600009","头像更新时userId error"),
    FACE_LOGIN_ERROR("600010","头像登陆失败"),
    FACE_LOGIN_ERROR_IMAGE("600011","头像登陆失败,头像质量不高"),
    TOKEN_IS_ERROR("600012","token无效"),
    GAME_SAVE_ERROR("600013","游戏记录保存失败"),
    GAME_QUERY_ERROR("600014","查询游戏记录失败"),
    EXCEL_NAME_ERROR("600015","excel名称不对"),
    ;

    private String code;
    private String message;

    ErrorMessage(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
